package com.laowang.framework.listener;

import lombok.Data;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Auther laowang
 * @Date 2024/3/15
 * @Description
 */

public class Event extends ApplicationEvent {

    private Integer eventType;//事件类型


    public Event(Object source,Integer eventType) {
        super(source);
        this.eventType= eventType;

    }

    public Integer getEventType() {
        return eventType;
    }

    public void setEventType(Integer eventType) {
        this.eventType = eventType;
    }

    @Override
    public String toString() {
        return "Event{" +
            "eventType=" + eventType +
            ", source=" + source +
            '}';
    }
}
